import 'package:flutter/material.dart';
import 'package:translate_windows/pages/icondemo_page.dart';


class TextFieleDemo extends StatefulWidget {
  @override
  _TextFieleDemoState createState() => _TextFieleDemoState();
}

class _TextFieleDemoState extends State<TextFieleDemo> {
  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 4.0,
      margin: EdgeInsets.all(0.0),
      child: Container(
        height: 300.0,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: <Widget>[
            TextDemo(),
            IconDemo(),

          ],
        ),
      ),
    );
  }
}

class TextDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Expanded(
        child: Container(
      height: MediaQuery.of(context).size.height,
      padding: EdgeInsets.only(
        left: 18.0,
        right: 18.0,
        bottom: 20.0,
        top: 2.0,
      ),
      child: TextField(
        decoration: InputDecoration(
          border: InputBorder.none,
          hintText: '点赞即可',
        ),
        style: TextStyle(
          color: Colors.black,
          fontSize: 25.0,
        ),
        maxLines: 999,
        cursorColor: Colors.pink,
        cursorWidth: 2.0,
      ),
    ));
  }
}
